//*************** 导出  *****************/

// profile.js
export var firstName = 'Michael';
export var lastName = 'Jackson';
export var year = 1958;

//*************** 和上面等价  *****************/

// profile.js
var firstName = 'Michael';
var lastName = 'Jackson';
var year = 1958;

export { firstName, lastName, year };


//*************** 别名  *****************/


function v1() { }
function v2() { }

export {
    v1 as streamV1,
    v2 as streamV2,
    v2 as streamLatestVersion
};


//*************** export 与 import 的复合写法  *****************/

export { foo, bar } from 'my_module';

// 可以简单理解为
import { foo, bar } from 'my_module';
export { foo, bar };

//*************** 默认接口的写法如下  *****************/

export { default } from 'foo';
export { es6 as default } from './someModule';

// 等同于
import { es6 } from './someModule';
export default es6;
